// pages/view/productWaitItem/productWaitItem.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    data: null,
  },

  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {
  iconClick() {
    this.pushDetail()
    this.triggerEvent("selectedItem", this.properties.data)
  },
  contentClick() {
    this.pushDetail()
    this.triggerEvent("selectedItem", this.properties.data)
  },
  pushDetail() {
    wx.navigateTo({
      url: "/goods/pages/goodsDetails/goodsDetails?goods_id=" + this.properties.data.id + '&goods_type=' + this.properties.data.saleTypeId
    })
  },
  }
})
